package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.MeetingAppointment;
import com.zhijian.medical.entity.vo.request.MeetingAppointmentSearchVo;
import com.zhijian.medical.entity.vo.request.MeetingAppointmentSingleVo;
import com.zhijian.medical.entity.vo.response.MeetingAppointmentVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 会议室预约记录 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2023-09-26 10:09:24
 */
public interface MeetingAppointmentService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    MeetingAppointment selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    MeetingAppointmentVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 新增
     *
     * @param meetingAppointment
     * @return
     */
    Long insert(MeetingAppointment meetingAppointment);

    /**
     * 更改
     *
     * @param meetingAppointment
     * @return
     */
    boolean update(MeetingAppointment meetingAppointment);

    /**
     * 动态修改
     *
     * @param record
     * @return
     */
    boolean updateByPrimaryKeySelective(MeetingAppointment record);

    /**
     * 总数
     *
     * @param meetingAppointmentSearchVo
     * @return
     */
    Integer count(MeetingAppointmentSearchVo meetingAppointmentSearchVo);

    /**
     * 列表
     *
     * @param meetingAppointmentSearchVo
     * @return
     */
    List<MeetingAppointmentVo> selectList(MeetingAppointmentSearchVo meetingAppointmentSearchVo);

    /**
     * 分页查询
     *
     * @param meetingAppointmentSearchVo
     * @return
     */
    Page<MeetingAppointmentVo> selectPage(MeetingAppointmentSearchVo meetingAppointmentSearchVo);

    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param entities 实例对象列表
     * @return 影响行数
     */
    boolean insertBatch(List<MeetingAppointment> entities);

    /**
     * 单个格子的预约详情
     *
     * @param meetingAppointmentSingleVo
     * @return
     */
    MeetingAppointmentVo single(MeetingAppointmentSingleVo meetingAppointmentSingleVo);
}